package com.oig.base.api.factory;

import com.oig.base.api.HsGoodsService;
import com.oig.base.api.fallback.HsGoodsServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class HsGoodsServiceFallBackFactory implements FallbackFactory<HsGoodsService> {

    @Override
    public HsGoodsService create(Throwable cause) {
        HsGoodsServiceFallBackImpl hsGoodsServiceFallBack = new HsGoodsServiceFallBackImpl();
        hsGoodsServiceFallBack.setCause(cause);
        return hsGoodsServiceFallBack;
    }
}
